package Demo1;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-16
 * Time: 19:16
 */
public class Test{//父类
    public int a = 1;
    public int b = 2;

    public Test(int a, int b) {//父类构造方法
        this.a = a;
        this.b = b;
    }
}

class Test1 extends Test{//子类
    public int c;

    public Test1(int c) {//子类构造方法
        super(1,2);
        this.c = c;
    }

    public static void main(String[] args) {
        Test1 tmp = new Test1(1);
    }
}
